//
//  Unit.m
//  ZhaoFang
//
//  Created by xt on 14-5-20.
//  Copyright (c) 2014年 li. All rights reserved.
//

#import "Unit.h"
#import "AppDelegate.h"

@implementation Unit


- (instancetype)init
{
    self = [super init];
    if (self) {

    }
    return self;
}
-(void)showProgressWithTitle:(NSString*)title
{
    _progress = [[MBProgressHUD alloc] init];
    [[[UIApplication sharedApplication].delegate window] addSubview:_progress];
    _progress.removeFromSuperViewOnHide = YES;
    [_progress hide:NO];
    _progress.labelText = title;
    [_progress show:YES];
}

-(void)hiddenProgress
{
   [_progress hide:YES];
}

@end
